package com.example.designpartten.composite;

/**
 * @author hql
 * @date 2020/4/15 15:46
 */
public abstract class Org {
    private String name;
    private Integer num;

    public Org(String name, Integer num) {
        this.name = name;
        this.num = num;
    }

    private Org parentOrg = null;

    protected void parentOrg(Org org) {
        this.parentOrg = org;
    }

    public Org getParentOrg() {
        return this.parentOrg;
    }


}
